package allinpay.yun.demo.order;

import allinpay.yun.demo.IDemoHandler;
import org.json.JSONArray;
import org.json.JSONObject;

public class FailureBidRefundHandler implements IDemoHandler {
    @Override
    public JSONObject getRequestParams() throws Exception {
        String bizBatchNo = System.currentTimeMillis() + "lbtk";

        JSONArray batchRefundList = new JSONArray();

        JSONObject batchRefund1 = new JSONObject();
        String batchRefundNo1 = System.currentTimeMillis() + "tklb1";
        batchRefund1.put("bizOrderNo", batchRefundNo1);
        batchRefund1.put("oriBizOrderNo", "1496388814676xf");
        batchRefund1.put("summary", "aaaa");

        batchRefundList.put(batchRefund1);

        JSONObject param = new JSONObject();
        param.put("bizBatchNo", bizBatchNo);
        param.put("goodsType", 1);
        param.put("goodsNo", "fadf");
        param.put("batchRefundList", batchRefundList);

        return param;
    }
}
